import { TableColumns } from "@/components/layout/table/table-columns";
import { FORMAT, NUMBER } from "@/utils/enums/type-enums";

/**
 * 床位列表
 */
export const specsColumns: TableColumns[] = [
  {
    type: NUMBER,
    label: '序号'
  },
  {
    label: '产品名称',
    name: 'specName'
  },
  {
    label: '产品编号',
    name: 'specCode'
  },
  {
    label: '设备类型',
    name: 'deviceTypeName'
  },
  {
    label: '配网方式',
    name: 'distributionTypeName'
  },
  {
    label: '产品型号',
    name: 'specModel'
  },
  {
    label: '是否支持连接外设',
    name: 'peripheral',
    value: [{ label: '未绑定', value: 0 }, { label: '已绑定', value: 1 }]
  },
  {
    label: '是否支持在线升级',
    name: 'upgrade'
  },
  {
    label: '操作',
    type: 'custom',
    align: 'center',
    buttons: [
      { method: 'edit', text: '编辑' },
      { method: 'delete', text: '删除' }
    ]
  },
]